<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:480px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">关闭</span>${$proxy?'编辑':'新建'}代理商</h3>
	<div style="overflow-x:hidden;padding:10px;">
<form method="post" action="/manage/user/proxyedit.php" class="validator">
	<input type="hidden" name="id" value="{$proxy['id']}" />
	<table width="96%" class="coupons-table">
		<tr><td width="80" nowrap><b>公司名称：</b></td><td><input type="text" name="title" value="{$proxy['title']}" require="true" datatype="require" class="f-input" style="width:280px;" /></td></tr>
        <tr><td width="80" nowrap><b>开户行：</b></td><td><input type="text" name="bank_name" value="{$proxy['bank_name']}" require="true" datatype="require" class="f-input" style="width:280px;" /></td></tr>
        <tr><td width="80" nowrap><b>开户人：</b></td><td><input type="text" name="bank_user" value="{$proxy['bank_user']}" require="true" datatype="require" class="f-input" style="width:280px;" /></td></tr>
        <tr><td width="80" nowrap><b>银行账号：</b></td><td><input type="text" name="bank_no" value="{$proxy['bank_no']}" require="true" datatype="require" class="f-input" style="width:280px;" /></td></tr>
		<tr><td nowrap><b>客服电话：</b></td><td><input type="text" name="kefu_tel" value="{$proxy['kefu_tel']}" require="true" class="f-input" style="text-transform:lowercase;" /></td></tr>
		<tr><td nowrap><b>商务电话：</b></td><td><input type="text" name="biz_tel" value="{$proxy['biz_tel']}" require="true" class="f-input" style="text-transform:uppercase;" /></td></tr>
		<tr><td nowrap><b>客服QQ(代码)：</b></td><td><input type="text" name="kefu_qq" value="${htmlspecialchars($proxy['kefu_qq'])}" class="f-input" style="width:280px;"  /></td></tr>
		<!--
<tr><td nowrap><b>商务QQ(代码)：</b></td><td><input type="text" name="biz_qq" value="{$proxy['biz_qq']}" class="f-input" style="width:280px;" /></td></tr>
-->
		<tr><td nowrap><b>项目分类权限：</b></td><td><?php
            if($proxy){
                foreach($groups AS $group){
                    if(in_array($group['id'], unserialize($proxy['group_ids']))){
                        echo "<input checked type=checkbox value=".$group['id']." name=group_ids[] />".$group['name']."&nbsp;&nbsp;";
                    }else{
                        echo "<input type=checkbox value=".$group['id']." name=group_ids[] />".$group['name']."&nbsp;&nbsp;";
                    }
                }
            }else{
                foreach($groups AS $group){
                    echo "<input type=checkbox value=".$group['id']." name=group_ids[] />".$group['name']."&nbsp;&nbsp;";
                }
            }
        ?></td></tr>
		<tr><td nowrap><b>所属城市：</b></td><td><select name="city_id" style="width:100px;">${Utility::Option($citys, $proxy['city_id'],'请选择城市')}</select></td></tr>
		<tr><td nowrap><b>是否多城市：</b></td><td><input type="text" name="is_all_citys" value="{$proxy['is_all_citys']}" class="f-input" onkeyup="this.value=this.value.toUpperCase()" /><span style="color:#c3c3c3;">(填Y或N)</span></td></tr>
		
		<tr><td></td><td><input type="submit" value="确定" class="formbutton" /></td></tr>
	</table>
</form>
	</div>
</div>
